<?php
require_once('RssConverter.php');
class RssVer1ConverterComponent extends Object implements RssConverter {
	
	public function toArticles($rss){
		$articles = array();

		foreach($rss['RDF']['item'] as $item){
			$article = array(
				'link' => $item['link'], 
				'title' => $item['title'],
				'description' => $item['description'],
			);
			$articles[] = $article;
		}
		
		return $articles;
	}


}
?>
